package cc.vv.lkbasecomponent.base.ui.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.loadmore.LoadMoreView;

import java.util.List;

import cc.vv.lkbasecomponent.base.ui.adapter.view.LKBaseLoadMoreView;
import cc.vv.lkbasecomponent.base.ui.adapter.viewholder.LKBaseViewHolder;

/**
 * item的layout单一的adapter
 *
 * @author dupeng dupeng@vv.cc
 * @date 2018/3/12
 */

public class LKBaseSingleAdapter<T, V extends LKBaseViewHolder> extends BaseQuickAdapter<T, V> {


    public LKBaseSingleAdapter(int layoutResId, @Nullable List<T> data) {
        super(layoutResId, data);
        init();
    }

    private void init() {
        this.setLoadMoreView(getCustomLoadMoreView());
    }

    /**
     * 返回自定义的加载更多控件.
     * @return
     */
    protected LoadMoreView getCustomLoadMoreView() {
        return new LKBaseLoadMoreView();
    }

    @Override
    protected void convert(V helper, T item) {
    }

}
